from celery_tasks.libs.captcha.captcha import captcha
from celery_tasks.main import celery_app


@celery_app.task(name="get_image_code")
def get_image_code():
    text, image = captcha.generate_captcha()
    return text, image